<div class="ntop">
<div class="a">
	<a>Chủ đề sôi động</a>
</div>
<div class="b">
<?php foreach( $this->get('hots') as $a ):?>
<div style="padding:5px">
<?php if($a['created_by_photo']):?>
<img style="margin-right:5px;float:left;width:40px;height:40px;padding:1px;border:1px solid #ccc" src="<?php _baseUrl()?>/files/photo/<?php _e($a['created_by_photo'])?>"/>
<?php else:?>
<img style="margin-right:5px;float:left;width:40px;height:40px;padding:1px;border:1px solid #ccc" src="<?php _baseUrl()?>/files/photo/noavatar.gif"/>
<?php endif;?>
<a href="#News/Index/View?ID=<?php _e($a['ID']);?>">
	<b><?php _e($a['title']);?></b></a>
<br/>Chuyên mục: <a href="#News/Index/Cat?ID=<?php _e($a['parent_id']);?>">
	<?php _e($a['parent_title']);?></a>
	
<div style="clear:both"></div>	
</div>	
<?php endforeach;?>
</div>

<div class="a">
	<a>Thảo luận mới</a>
</div>
<div class="b">
<?php foreach( $this->get('comments') as $a ):?>
<table cellpadding="5">
<tr>
<!--<td align="center">
	<?php _e(get_user_link($a['created_by_id'],$a['created_by_name'],$a['created_is_deleted']));?><br/>
	<?php if($a['created_by_photo']):?>
	<img style="width:30px;height:30px;padding:1px;border:1px solid #ccc" src="<?php _baseUrl()?>/files/photo/<?php _e($a['created_by_photo'])?>"/>
	<?php else:?>
	<img style="width:30px;height:30px;padding:1px;border:1px solid #ccc" src="<?php _baseUrl()?>/files/photo/noavatar.gif"/>
	<?php endif;?>	
</td>-->
<td valign="top">
	<div><a href="#News/Index/View?ID=<?php _e($a['news_id'])?>"><?php _e($a['parent_title'])?></a></div>
	<div style="color:#ccc;font-size:80%"><?php _e(show_date(TIME_FORMAT,$a['date_created']));?> | <?php _e(show_date(DATE_FORMAT,$a['date_created']));?></div>
	<?php _e(content_format(short_title( preg_replace("#\n#"," ",$a['content']), 198 )) ) ?> ( <?php _e(get_user_link($a['created_by_id'],$a['created_by_name'],$a['created_is_deleted']));?> )
</td>
</tr>
</table>
<?php endforeach;?>
</div>
</div>
